package org.huntaway.kindergarten.po.base;

import java.io.Serializable;


/**
 * This is an object that contains data related to the journal table.
 * Do not modify this class because it will be overwritten if the configuration file
 * related to this class is modified.
 *
 * @hibernate.class
 *  table="journal"
 */

public abstract class BasePayout extends org.huntaway.kindergarten.po.Journal  implements Serializable {

	public static String REF = "Payout";
	public static String PROP_OUT_AUTHOR = "outAuthor";
	public static String PROP_ID = "Id";
	public static String PROP_OUT_DEFINE = "OutDefine";


	// constructors
	public BasePayout () {
		initialize();
	}

	/**
	 * Constructor for primary key
	 */
	public BasePayout (java.lang.Integer id) {
		super(id);
	}

	/**
	 * Constructor for required fields
	 */
	public BasePayout (
		java.lang.Integer id,
		org.huntaway.kindergarten.po.SysUser biAuthor,
		java.math.BigDecimal amount,
		java.util.Date biDate) {

		super (
			id,
			biAuthor,
			amount,
			biDate);
	}



	private int hashCode = Integer.MIN_VALUE;


	// many to one
	private org.huntaway.kindergarten.po.Personinfo outAuthor;
	private org.huntaway.kindergarten.po.OutDefine outDefine;






	/**
	 * Return the value associated with the column: out_author
	 */
	public org.huntaway.kindergarten.po.Personinfo getOutAuthor () {
		return outAuthor;
	}

	/**
	 * Set the value related to the column: out_author
	 * @param outAuthor the out_author value
	 */
	public void setOutAuthor (org.huntaway.kindergarten.po.Personinfo outAuthor) {
		this.outAuthor = outAuthor;
	}



	/**
	 * Return the value associated with the column: fina_type
	 */
	public org.huntaway.kindergarten.po.OutDefine getOutDefine () {
		return outDefine;
	}

	/**
	 * Set the value related to the column: fina_type
	 * @param outDefine the fina_type value
	 */
	public void setOutDefine (org.huntaway.kindergarten.po.OutDefine outDefine) {
		this.outDefine = outDefine;
	}




	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof org.huntaway.kindergarten.po.Payout)) return false;
		else {
			org.huntaway.kindergarten.po.Payout payout = (org.huntaway.kindergarten.po.Payout) obj;
			if (null == this.getId() || null == payout.getId()) return false;
			else return (this.getId().equals(payout.getId()));
		}
	}

	public int hashCode () {
		if (Integer.MIN_VALUE == this.hashCode) {
			if (null == this.getId()) return super.hashCode();
			else {
				String hashStr = this.getClass().getName() + ":" + this.getId().hashCode();
				this.hashCode = hashStr.hashCode();
			}
		}
		return this.hashCode;
	}


	public String toString () {
		return super.toString();
	}


}